//
//  ImageTitleButton.h
//  成品家
//
//  Created by YYY on 2017/3/6.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,CPJButtonStyle)
{
    //左图右字
    CPJLeftImageRightTitleStyle = 0,
    //左字右图
    CPJLeftTitleRightImageStyle = 1,
    //上图下字
    CPJUpImageDownTitleStyle = 2,
    //上字下图
    CPJUpTitleDownImageStyle = 3,
};

@interface ImageTitleButton : UIButton

@property(nonatomic,strong)UIImageView *buttonImage;
@property(nonatomic,strong)UILabel *buttonTitle;

//图文并茂
-(id)initWithFrame:(CGRect)frame style:(CPJButtonStyle)style imageSize:(CGSize)imageSize titleSize:(CGSize)titleSize imageStr:(NSString *)imageStr titleStr:(NSString *)titleStr fontSize:(CGFloat)fontSize titleColor:(UIColor *)titleColor space:(CGFloat)space;

@end
